package per.hx.bs.web.yw.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import per.hx.bs.util.Query;
import per.hx.bs.vo.CountCheckUserVO;

import java.util.List;
import java.util.Map;

/**
 * @author HuXing
 * @date 2018/4/28  16:32
 */
@Primary
@FeignClient(value = "Huxingbs-Sys-Service")
public interface YwCountService {
    /**
     * 获取用户统计信息
     *
     * @param map 条件
     * @return 信息包装集合
     */
    @PostMapping(value = "yw-service/count/check/list")
    List<CountCheckUserVO> selectListUser(@RequestBody Map<String, Object> map);

    /**
     * 统计数量
     *
     * @param map 条件
     * @return 数量
     */
    @PostMapping(value = "yw-service/count/check/count")
    Integer countListUser(@RequestBody Map<String, Object> map);

    /**
     * 指标统计
     *
     * @param map 条件
     * @return 查询结果
     */
    @PostMapping(value = "yw-service/count/appraisal")
    List<Map<String, Object>> selectListAppraisal(@RequestBody Map<String, Object> map);
}
